﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Login.ascx.vb" Inherits="Login" %>
<div>
    <asp:UpdatePanel ID="upnlLoginPage" runat="server">
        <ContentTemplate>
            <div class="LoginMain">
                <center>
                    <asp:Login ID="Login1" runat="server" 
                        FailureText="Your login attempt was not successful. Please try again.<br/><a href='ForgotPass.aspx' title='Forgot Password?'>Forgot Password?</a>"
                        >
                        <LayoutTemplate>
                            <table cellpadding="0" cellspacing="0" style="border-collapse:collapse;">
                                <tr>
                                    <td>
                                        <table class="LoginControl" cellpadding="0">
                                            <tr>
                                                <td class="LoginTitle" align="center" colspan="2"><span>Log In</span></td>
                                            </tr>
                                            <tr>
                                                <td class="tdright">&nbsp;</td>
                                                <td class="tdleft">&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td class="tdright">
                                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                                                </td>
                                                <td class="tdleft">
                                                    <asp:TextBox ID="UserName" Width="200px" runat="server"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                                        ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                                        ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdright">
                                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                                </td>
                                                <td class="tdleft">
                                                    <asp:TextBox ID="Password" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                                        ControlToValidate="Password" ErrorMessage="Password is required." 
                                                        ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdright">
                                                    &nbsp;
                                                </td>
                                                <td class="tdleft">
                                                    <asp:CheckBox ID="RememberMe" runat="server" Text="&nbsp;&nbsp;Remember me next time." />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2">
                                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdright" colspan="2">
                                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" 
                                                        ValidationGroup="Login1" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </LayoutTemplate>
                </asp:Login>
            </center>
            <br />
            </div>
            
        </ContentTemplate>
    </asp:UpdatePanel>
</div>
